function copy(value) {
  // console.log("复制id", value);
  let eInput = document.createElement("input");
  eInput.value = value;
  document.body.appendChild(eInput);
  eInput.select(); //选择对象
  let copyText = document.execCommand("Copy"); //执行浏览器的复制命令
  eInput.style.display = "none";
  if (copyText) this.$message.success("复制成功");
}

export default {
  copy
}